﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Data;
using CPPEI.Coolzon.Service.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Server.ServiceImplement
{
    public class ReqPartEventHandler : BaseHandler<ReqPartEventData, RespPartEventData>
    {
        public ReqPartEventHandler()
            : base(RESPONSE_SCENARIO.SCENE, RESPONSE_COMMAND.SCENE.PARTEVENT)
        {
        }

        protected override RespPartEventData OnHandle(Data.MainServiceData.Request request, ReqPartEventData requestData)
        {
            RespPartEventData responseData = new RespPartEventData();
            responseData.ClientID = requestData.ClientID;
            responseData.PartName = requestData.PartName;
            responseData.EventName = requestData.EventName;
            responseData.EventData = requestData.EventData;
            return responseData;
        }
    }
}
